<template>
    <div class="flex bottomBox">
        <div class="boxShadow authorCom">
            <p class="boldTitle">音量调节</p>
            <div class="modulContent">
                <el-slider v-model="voice" :format-tooltip="formatTooltip"  @change="changeVoice"></el-slider>
            </div>
        </div>
    </div>
</template>

<script>
import { delStation, adjustVoice } from '../js/methods';
export default {
    name: 'adjustVoice',
    components:{
        
    },
    data(){
        return{
           voice: 0
        }
    },
    methods:{
        formatTooltip(val) {
            return val / 100;
        },

        changeVoice(val){
            adjustVoice(val / 100)
        }
    },

    //属性监听
    watch:{
       
    }

}
</script>

<style scoped lang="less">
 .authorCom{
     background-color: #ffffff;
     border-top-left-radius: 4px;
     border-top-right-radius: 4px;
     padding: 10px;
     text-align: left;
     font-size: 14px;
     width: 100%;
 }
 .boldTitle{
     font-weight: bold;
     margin-bottom: 7.5px;
 }
 .modulContent{
     color: #666666;
     margin: 30px 0 ;
     padding-left: 8px;
 }
 .formBtns{
     padding: 0 5px;
     margin-top: 15px;
     button{
         width: 100%;
     }
 }
</style>